/**
 * Copyright &copy; 2018-2018 <a href="#">聚成科技</a> All rights reserved.
 */
package com.jckj.core.vos;

import com.jckj.core.validator.groups.Add;
import com.jckj.core.validator.groups.Delete;
import com.jckj.core.validator.groups.Edit;
import com.jckj.core.validator.groups.View;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 *     科室vo
 * </p>
 *
 * @author 刘志远
 * @date 18-1-31
 */
public class OfficeVo {

    @NotNull(message="请选择要操作的科室", groups = {Delete.class, Edit.class, View.class})
    private String id;

    @NotNull(message="请输入科室编码", groups = {Add.class})
    @Length(min = 1, max=20, message="请输入正确的科室编码，长度为1-20个字符",groups = {Add.class,Edit.class})
    private String officeCode;

    @NotNull(message="请僌科室名称", groups = {Add.class})
    @Length(min = 1, max=20, message="请输入正确的科室名称，长度为1-50个字符",groups = {Add.class,Edit.class})
    private String officeName;

    private String pid;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date upateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOfficeCode() {
        return officeCode;
    }

    public void setOfficeCode(String officeCode) {
        this.officeCode = officeCode;
    }

    public String getOfficeName() {
        return officeName;
    }

    public void setOfficeName(String officeName) {
        this.officeName = officeName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpateTime() {
        return upateTime;
    }

    public void setUpateTime(Date upateTime) {
        this.upateTime = upateTime;
    }
}
